package com.imooc.enums;

/**
 * @author songj
 * @date 2019/7/24 8:40
 */
public enum ResultEnum {
    SUCCESS(0000,"成功"),
    /**
     * 未知错误
     */
    UNKNOW_ERROR(9999,"未知错误"),
    PRIMARY_SCHOOL_EXCEPTION(1001,"你还在上小学吧"),
    HIGH_SCHOOL_EXCEPTION(1002,"你还在上初中吧"),
    SUPER_SCHOOL_EXCEPTION(1003,"你还在上高中吧"),
    ;

    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
